Edits the current pattern.